package com.ybf.user.dal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ybf.user.dal.entity.AgentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AgentMapper extends BaseMapper<AgentDO> {


    @Select("select * from us_agent where FIND_IN_SET(:menuId, menu_ids)")
    List<AgentDO> selectByMenuId(@Param("menuId") Long menuId);
}
